package com.qckj.amz.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.qckj.common.annotation.Excel;
import com.qckj.common.core.domain.BaseEntity;
import lombok.Data;

import javax.persistence.*;
import org.hibernate.annotations.GenericGenerator;

/**
 * 产品类别配置对象 t_config_category
 *
 * @author luchuan
 * @since 1.0 2023-01-19
 */
@Entity
@Table(name = "t_config_category")
@Data
public class ConfigCategory extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** 主键自增 */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name="id")
    private Long id;

    /** 类别代码 */
    @Excel(name = "类别代码")
    @Column(name="category_code")
    private String categoryCode;

    /** 类别名称 */
    @Excel(name = "类别名称")
    @Column(name="category_name")
    private String categoryName;

    /** 状态 */
    @Excel(name = "状态")
    @Column(name="status")
    private String status;

    /** 部门id */
    @Excel(name = "部门id")
    @Column(name="dept_id")
    private Long deptId;

    /** 创建人 */
    @Excel(name = "创建人")
    @Column(name="create_by")
    private String createBy;

    /** 创建时间 */
    @Column(name="create_time")
    private Date createTime;

    /** 更新人 */
    @Column(name="update_by")
    private String updateBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    @Column(name="update_time")
    private Date updateTime;

    /** 备注 */
    @Excel(name = "备注")
    @Column(name="remark")
    private String remark;


}
